package cn.dafa.user.mapper;

import org.springframework.stereotype.Repository;

import cn.dafa.user.model.User;

@Repository
public interface UserMapper {
	int deleteByPrimaryKey(Integer id);

	int insert(User record);

	int insertSelective(User record);

	User selectByPrimaryKey(Integer id);

	int updateByPrimaryKeySelective(User record);

	int updateByPrimaryKey(User record);

	/**
	 * @param user
	 * @return
	 */
	int checkUserExits(User user);
}